package composite;

public class Empty<T extends Comparable<T>> implements Liste<T>
{
	@Override
	public boolean isEmpty()
	{
		return true;
	}
	
	@Override
	public int length()
	{
		return 0;
	}

	@Override
	public Liste<T> tail()
	{
		return this;
	}

	@Override
	public T head()
	{
		return null;
	}
	
	public String toString()
	{
		return "";
	}

	@Override
	public Liste<T> reverse()
	{
		return this;
	}
	
	@Override
	public NotEmpty<T> putLast(T element)
	{
		return new NotEmpty<T>(element);
	}

	@Override
	public Liste<T> insert(T element)
	{
		return new NotEmpty<T>(element);
	}

	@Override
	public Liste<T> sort()
	{
		return this;
	}
}
